#include <iostream>
#include <set>
using namespace std;

int main()
{
    set<int> hash;
    int n = 0;
    cin >> n;
    while (n--)
    {
        int num = 0;
        cin >> num;
        if (!hash.count(num)) hash.insert(num);
    }
    for (auto& e : hash)
    {
        cout << e << endl;
    }
    return 0;
}